﻿<UserControl x:Class="StarTrekFileBrowser.BrowserFileControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Background="Black" Name="ElementControl"
             d:DesignHeight="50" d:DesignWidth="320">
    <Grid Tag="{Binding ElementName=ElementControl, Path=NodeID, Mode=OneWay}">
        <Rectangle Tag="{Binding ElementName=ElementControl, Path=NodeID, Mode=OneWay}" Name="ButtonRec" RadiusX="20" RadiusY="20" Stroke="{Binding ElementName=ElementControl, Path=StrokeColor, Mode=OneWay}" StrokeThickness="4"  Fill="{Binding ElementName=ElementControl, Path=FillColor, Mode=OneWay}" Height="50" HorizontalAlignment="Left" Width="300" Margin="10,0,0,0" />
        <!--    
        <Viewbox Height="30" Width="30" Stretch="Uniform" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15,0,0,0">
            <Image Source="{Binding Image}" />
        </Viewbox>
        -->
        <Label Tag="{Binding ElementName=ElementControl, Path=NodeID, Mode=OneWay}" Name="FileLabel" Content="{Binding ElementName=ElementControl, Path=LabelText, Mode=OneWay}" Foreground="Black" Margin="20,0,0,0" Height="30" FontWeight="Bold" FontSize="16" VerticalAlignment="Center" />
        <Rectangle Tag="{Binding ElementName=ElementControl, Path=NodeID, Mode=OneWay}" Name="LineRec" Height="4" Fill="{Binding ElementName=ElementControl, Path=StrokeColor, Mode=OneWay}" Margin="310,0,0,0" Width="10" />
        <Rectangle Tag="{Binding ElementName=ElementControl, Path=NodeID, Mode=OneWay}" Name="FrontLineRec" Height="4" Fill="{Binding ElementName=ElementControl, Path=FrontLineColor, Mode=OneWay}" Width="10" VerticalAlignment="Center" HorizontalAlignment="Left" />
        
    </Grid>
</UserControl>
